#
# Be sure to run `pod lib lint XResources.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'XResources'
  s.version          = '0.0.1'
  s.summary          = '字体/图片/视频等资源库'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
资源库
                       DESC

  s.homepage         = 'https://gitee.com/anruhome/xresources'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'anru' => '910736302@qq.com' }
  s.source           = { :git => 'https://gitee.com/anruhome/xresources.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '13.0'
  s.requires_arc = true
  s.swift_version = '5.0'

  s.source_files = 'XResources/Classes/**/*'
  
  s.resources = ['XResources/Assets/*.xcassets','XResources/Assets/**/*', 'XResources/Classes/**/*.lproj/*']

# s.resources 和 s.resource_bundles 虽然最后都会并入都主bundle下，但是，resource_bundles会增加一个XResources.bundle,所有资源都会在这个下面，所以直接用R.bundel 取不到，需要再加上XResources.bundle
# public init(bundle: Foundation.Bundle) {
#      if let path = bundle.path(forResource: "XResources", ofType: "bundle"), let b = Bundle(path: path) {
#          self.bundle = b
#      } else {
#          self.bundle = bundle
#      }
#  }
#
#  s.resource_bundles = {
#   'XResources' => ['XResources/Assets/*.xcassets', 'XResources/Assets/**/*']
#}


  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
#  s.dependency 'Localize-Swift', '~> 3.0'  # https://github.com/marmelroy/Localize-Swift
  s.dependency 'R.swift', '~> 7.0'  # https://github.com/mac-cain13/R.swift
  s.dependency 'Localize-Swift', '~> 3.0'  # https://github.com/marmelroy/Localize-Swift
end
